package com.qt.entity;

public class Cat extends Animal {

    private String work;
    private String name = "cat";
    private String name2 = "儿子";


     public Cat() {
     }

     public Cat(String work, String name, String name2) {
          this.work = work;
          this.name = name;
          //this.name2 = name2;
     }

     @Override
     public String getName2(){
          return this.name2;
     }

     /**
      * 获取
      * @return work
      */
     public String getWork() {
          return work;
     }

     /**
      * 设置
      * @param work
      */
     public void setWork(String work) {
          this.work = work;
     }

     /**
      * 获取
      * @return name
      */
     @Override
     public String getName() {
          return name;
     }

     /**
      * 设置
      * @param name
      */
     @Override
     public void setName(String name) {
          this.name = name;
     }

     /**
      * 获取
      * @return name2
      */





     @Override
     public String toString() {
          return "Cat{work = " + work + ", name = " + name + "}";
     }

     public void show(){
          System.out.println("cat 揍小宁");
     }

}
